package com.example.work.service;

import com.example.work.entity.Submit;
import com.example.work.repository.SubmitRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 * @Description:
 * @author: JinMu
 * @create: 2018-08-10 15:17
 * @Version: 1.0
 **/
@Service
@Transactional
public class SubmitService {

    @Autowired
    private SubmitRepository submitRepository;
    //添加一条数据
    public void addsubmit(Submit submit){
          submitRepository.save(submit);
    }
}
